in your simulator (for example iPhone) toggle "Connect Hardware keyboard" off. This should resolve it.
Topic:
Programming Languages
SubTopic:
Swift
Tags: